﻿#include <iostream>
using namespace std;
#include <vector>
#include<algorithm>
#include<string>
#include<math.h>

//计算糖果
int main()
{
	int a = 0, b = 0, c = 0, d = 0;
	cin >> a >> b >> c >> d;
	int A = 0, B = 0, C = 0;
	B = ((c + d) - (a - b + c + d) / 2) / 2;
	A = a + B;
	C = B - b;
	if (A - B == a && B - C == b && A + B == c && B + C == d)
	{
		cout << A << " " << B << " " << C << endl;
	}
	else { cout << "No" << endl; }
	return 0;
}


//进制转换
//https://ac.nowcoder.com/questionTerminal/2cc32b88fff94d7e8fd458b8c7b25ec1?commentTags=Python%203 接口题目版
int main()
{
    char num[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
    int m = 0, n = 0;
    bool flag = false;
    cin >> m >> n;

    if (!m) { cout << "0" << endl; return 0; }
    if (m < 0) { m = -m; flag = true; }

    string ret; ret.reserve(100);

    while (m) { ret += num[m % n]; m /= n; }

    if (flag) { ret += '-'; }

    reverse(ret.begin(), ret.end());
    cout << ret << endl;
    return 0;
}